public class ZhaiZhiJie1
{
    public static void main(String[] args)
    {
        Employee a = new Employee(123456, "zhangsan", 7000, 0.15f);
        System.out.println("num: " + a.getNum() + ", name: " + a.getName() + ", salary: " + a.getSalary() + ", rate: " + a.getRate());
        System.out.println("growth: " + a.groSal());
        System.out.println("salSum: " + a.salSum());
    }
}

class Employee
{
    private int num;
    private String name;
    private int salary;
    private float rate;
    public Employee(int num, String name, int salary, float rate)
    {
        this.setNum(num);
        this.setName(name);
        this.setSalary(salary);
        this.setRate(rate);
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public float getRate() {
        return rate;
    }

    public void setRate(float rate) {
        this.rate = rate;
    }

    public float groSal()
    {
        return salary * rate;
    }

    public float salSum()
    {
        return salary * (1 + rate);
    }
}